package com.snail.jj.androiddemos.components.receivers;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.snail.jj.androiddemos.components.services.MsgPushService;

/**
 * Created by snail on 2017/5/12.
 */

public class BootCompleteReceiver extends BroadcastReceiver {

    private static final String TAG = "BootCompleteReceiver";

    @Override
    public void onReceive(Context context, Intent intent) {

        Intent service = new Intent(context, MsgPushService.class);
        context.startService(service);
        Log.i(TAG,"Boot Complete. Starting MsgPushService...");

    }

}
